﻿using System.Web.Http;

namespace IceDog.DNF.Program.WebApi2.Controllers
{
    public class AlphabetController : ApiController
    {
        [HttpGet,ActionName("GetNewA")]
        public string GetA()
        {
            return "A";
        }
        [AcceptVerbs("GET","POST"),ActionName("GetNewB")]
        public string GetB()
        {
            return "B";
        }
        [NonAction]// Not an action method.
        public string GetC()
        {
            return "C";
        }
        [HttpPost]
        public string GetD([FromBody] string data)
        {
            return "D";
        }
    }
}
